<template>
    <div class="rich-text" v-html="content"></div>
</template>

<script lang="ts">
import { Component, Prop, Vue } from 'vue-property-decorator';

@Component({
    name: 'RichText',
})
export default class RichText extends Vue {
    @Prop({ type: String }) public content?: string;
}
</script>

<style lang="less">

.rich-text {
    p {
        margin: 0;
    }
    img {
        width: 100%;
        line-height: 0;
        vertical-align: middle;
    }
}
</style>
